package com.ruoyi.eamp.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户邮件关系表对象 eamp_email_user
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
public class EampEmailUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** user和email联查id */
    private Long ueId;

    /** 收件人或发件人id */
    @Excel(name = "收件人或发件人id")
    private Long userId;

    /** 邮件id */
    @Excel(name = "邮件id")
    private Long emailId;

    /** 关系 1发件 2收件 */
    @Excel(name = "关系 1发件 2收件")
    private Long connection;

    /** 状态 1已读 2未读 */
    @Excel(name = "状态 1已读 2未读")
    private Long status;

    /** 1收件箱  2发件箱 3草稿箱 4 垃圾箱 5逻辑删除 */
    @Excel(name = "1收件箱  2发件箱 3草稿箱 4 垃圾箱 5逻辑删除")
    private Long delFlg;

    private Long emailGenre;

    public EampEmailUser() {
    }

    public EampEmailUser(Long userId, Long emailId, Long connection, Long status, Long delFlg, Long emailGenre) {
        this.userId = userId;
        this.emailId = emailId;
        this.connection = connection;
        this.status = status;
        this.delFlg = delFlg;
        this.emailGenre = emailGenre;
    }

    public Long getEmailGenre() {
        return emailGenre;
    }

    public void setEmailGenre(Long emailGenre) {
        this.emailGenre = emailGenre;
    }

    public void setUeId(Long ueId)
    {
        this.ueId = ueId;
    }

    public Long getUeId() 
    {
        return ueId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setEmailId(Long emailId) 
    {
        this.emailId = emailId;
    }

    public Long getEmailId() 
    {
        return emailId;
    }
    public void setConnection(Long connection) 
    {
        this.connection = connection;
    }

    public Long getConnection() 
    {
        return connection;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDelFlg(Long delFlg) 
    {
        this.delFlg = delFlg;
    }

    public Long getDelFlg() 
    {
        return delFlg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ueId", getUeId())
            .append("userId", getUserId())
            .append("emailId", getEmailId())
            .append("connection", getConnection())
            .append("status", getStatus())
            .append("delFlg", getDelFlg())
            .toString();
    }
}
